import React from 'react'
import {render} from 'react-dom'

var HelloMessage = React.createClass({
    render() {
        return (
            <h1>nihao  {this.props.name}</h1>
        );
    }
});
render(
    <HelloMessage name="John" />,
    document.getElementById('index')
);






